@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: rgba(0, 0, 0, 0.65);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 12px;

  .filter-container {
    display: flex;
    width: 100%;

    .filter-left {
      flex: 1;

    }

    .filter-right {
      text-align: right;
    }
  }
}

.container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 50px);

  .page-head {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    .left {
      flex: 1;
      .date-range {
        width:16rem;
      }
    }
  }

  .page-body {
    flex: 1;
  }

  .page-foot {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;

    .left {
      flex: 1;
    }
  }
}

.el-drawer__header {
  margin-bottom: 0;
  padding: 10px 20px 10px;
  border-bottom: 1px solid #ebeef5;
  // #f6f9fd
}

.ruleForm {
  overflow: auto;
  padding: 20px 20px 60px;
  position: relative;

  .el-select {
    width: 100%;
  }

  /* input Number类型不要上下箭头 */
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    /* -webkit-appearance: none; */
    appearance: none;
    /* margin: 0; */
  }

  .fixed-bottom {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 12px 0;
    background-color: #f2f1f1;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.right {
  text-align: right;
}

.avatar-group {
  display: flex;
  
  .avatar-right {
    flex: 1;
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    padding: 3px 0;

    .fullname {
      flex: 1;
      font-size: 14px;
      margin-bottom: 0;
      display: flex;
      align-items: center;
      .name {
        padding-right: 8px;
      }
    }

    .tags {
      flex: 1;
      font-size: 12px;
      color: #bfbfbf;
      display: flex;
      align-items: end;

      .tag-item {
        margin-right: 8px;
      }
    }
  }
}

.panel {
  margin-bottom: 6px;
  
  .panel-header {
    display: flex;
    height: 40px;
    align-items: center;
    margin-bottom: 3px;

    .bl {
      border-left: 3px solid #409eff;
      height: 14px;
      padding-right: 0.5rem;
    }

    .title {
      flex: 1;
      font-size: 14px;
      color: #666;
    }

    .more {
      text-align: right;
    }
  }

  .bd {
    border-bottom: 1px solid #f2f1f1;
  }
}

.mr20 {
  margin-right: 20px;
}

.mt20 {
  margin-top: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.w100 {
  width: 100%;
}

.rem6 {
  width: 6rem;
}

.list-group {
  .list-item {
    border-bottom: 0.5px solid #f2f1f1;
    font-size: 13px;

    .row {
      display: flex;
      height: 41px;
      align-items: center;

      .prefix {
        padding-right: 5px;
        color: #007aff;
      }

      .title {
        flex: 1;
        text-align: left;
      }

      .value {
        flex: 1;
        text-align: right;
      }
    }

    .intro {
      padding: 0;
    }

    .intro:not(:empty) {
      padding-bottom: 10px;
    }
  }
}


.file-list {
    margin-top: 10px;

    .file-item {
        margin-bottom: 10px;
        cursor: pointer;
        // 超出部分省略号
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

    }
}
